package org.zecontech.plantvszombie.datagen;

import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput;
import net.fabricmc.fabric.api.datagen.v1.provider.FabricLanguageProvider;
import net.minecraft.core.HolderLookup;
import org.zecontech.plantvszombie.init.ModEntities;
import org.zecontech.plantvszombie.init.ModItems;

import java.util.concurrent.CompletableFuture;

public class ModLanguageProviderZh extends FabricLanguageProvider {

    protected ModLanguageProviderZh(FabricDataOutput dataOutput, CompletableFuture<HolderLookup.Provider> registryLookup) {
        super(dataOutput, "zh_cn", registryLookup);
    }

    @Override
    public void generateTranslations(HolderLookup.Provider provider, TranslationBuilder builder) {
        builder.add(ModItems.SUN_ITEM, "阳光");
        builder.add(ModItems.KELONG, "科龙");
        builder.add(ModItems.SUN_FLOWER_PACKET, "向日葵包");
        builder.add(ModEntities.SUN_FLOWER, "向日葵");
        builder.add(ModItems.CHERRY_BOMB_PACKET, "樱桃炸弹包");
        builder.add(ModEntities.CHERRY_BOMB, "樱桃炸弹");
    }
}
